using System;
using System.Collections.Generic;
using System.Text;

namespace Microsoft.ConnectionEngine.Common
{
    /// <summary>
    /// Represents a key value pair item.
    /// </summary>
    public class KeyValueItem
    {
        private string itemKey;

        /// <summary>
        /// The key that identifies the item.
        /// </summary>
        public string Key
        {
            get { return itemKey; }
            set { itemKey = value; }
        }

        private string itemValue;

        /// <summary>
        /// The value the item holds.
        /// </summary>
        public string Value
        {
            get { return itemValue; }
            set { itemValue = value; }
        }

        /// <summary>
        /// Instantiates a nem KeyValueItem object.
        /// </summary>
        public KeyValueItem()
        {
        }

        /// <summary>
        /// Instantiates a nem KeyValueItem object based on arguments passed as parameters.
        /// </summary>
        /// <param name="itemkey">The key that identifies the item.</param>
        /// <param name="itemvalue">The value the item holds.</param>
        public KeyValueItem(string itemkey, string itemvalue)
        {
            Key = itemkey;
            Value = itemvalue;
        }
    }
}
